


// 封装组件
export class MyBtn extends Component{
  render(){
    const {
      className,
      onClick,
      style,
      disabled,
      text
    } = this.props
    return (
      <button 
        className={"btn " + className }
        onClick={onClick}
        style={style}
        disabled={disabled}
      > {text} </button>
    )
  }
}